<div id="wrap">
	<div id="action_msg">
		<?php echo ($action_msg!='')?$action_msg:''; ?>
	</div>
	<div id="tabs_container">
	    <ul id="tabs">
	    	<?php 
	    		$personal_page_tab = $this->config->item('personal_page_tab', 'layout');
				$tab_select = isset($tab_select)?$tab_select:'organize_tab_content';
				foreach($personal_page_tab as $key=>$val){
					if($tab_select != $key){
						echo '<li><a href="#'.$key.'">'.$val.'</a></li>';
					}
					else{
						echo '<li class=active><a href="#'.$key.'">'.$val.'</a></li>';	
					}
				}
	    	?>
	        
	    </ul>
	</div>
	<div id="tabs_content_container">
	    <div id="organize_tab_content" class="tab_content" <?php echo ($tab_select=='organize_tab_content')?'style="display: block;"':'' ?> >
	        <?php
				echo $activity_organize;
	        ?>
	    </div>
	    <div id="favorite_tab_content" class="tab_content" <?php echo ($tab_select=='favorite_tab_content')?'style="display: block;"':'' ?> >
	        <?php 
	        	echo $activity_favorite;
			?>
	    </div>
	    <div id="join_tab_content" class="tab_content" <?php echo ($tab_select=='join_tab_content')?'style="display: block;"':'' ?> >
	        <?php 
	        	echo $activity_join;
			?>
	    </div>
	    <div id="user_profile_tab_content" class="tab_content" <?php echo ($tab_select=='user_profile_tab_content')?'style="display: block;"':'' ?> >
	        <?php
	        	echo $user_profile;
	        ?>
	    </div>
	    <div id="change_password_tab_content" class="tab_content" <?php echo ($tab_select=='change_password_tab_content')?'style="display: block;"':'' ?> >
	        <?php
	        	echo $change_password_form;
	        ?>
	    </div>
	    <div id="message_box_tab_content" class="tab_content" <?php echo ($tab_select=='mail_box_tab_content')?'style="display: block;"':'' ?> >
	        <?php
	        	echo $message_box;
	        ?>
	    </div>
	</div>
	
</div>